﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    class Program
    {
        static void Main(string[] args)
        {
            Cat cat = new Cat();
            cat.Leg = 4;
            cat.SeeNight();
            cat.Sleep();
            cat.Walk();
            cat.Eat();
            cat.Cry();
            
            Console.WriteLine("-----猫------");
            Tiger tiger = new Tiger();
            tiger.Leg = 4;
            tiger.SeeNight();   
            tiger.Sleep();
            tiger.Walk();
            tiger.Eat();
            tiger.Cry();
            
            Console.WriteLine("------老虎-----");
            Bird bird = new Bird();
            bird.Leg = 2;
            bird.Fly();
            bird.Sleep();
            bird.Walk();
            bird.Eat();
            bird.Cry();
            
            Console.WriteLine("-----鸟------");
            Eagle eagle = new Eagle();
            eagle.Leg = 2;
            eagle.Fly();
            eagle.Sleep();
            eagle.Walk();
            eagle.Eat();
            eagle.Cry();
            
            Console.WriteLine("-----老鹰------");
            Console.ReadKey();


        }
    }
}
